//
//  NISecurityPasswordView.h
//  gweAD
//
//  Created by navinfo air on 2016/11/7.
//  Copyright © 2016年 mengy. All rights reserved.
//


#import <UIKit/UIKit.h>

typedef enum : NSUInteger {
    SecurityPasswordViewDefault,
    SecurityPasswordViewSetting,
} SecurityPasswordViewMode;

@protocol NISecurityPasswordViewDelegate <NSObject>
- (void)passwordDidInputFinish:(NSString *)password;
- (void)viewWillClose;
- (void)forgotButtonDidClick;
- (void)changeButtonDidClick;

@end


@interface NISecurityPasswordView : UIView<UITextFieldDelegate>

@property(nonatomic,readonly)NSString *text;
@property(nonatomic,assign)id<NISecurityPasswordViewDelegate> delegate;
@property(nonatomic)SecurityPasswordViewMode mode;

- (void)clearPassword;
- (void)showKeyBoard;
- (void)closeKeyBoard;
- (void)showError:(NSString *)errorString;
- (void)hiddenChangeButton:(BOOL)hidden;
-(void)setTitleLabelText:(NSString *)title;

@end
